Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Plugin Reset interface on error #299

Merged

Conversation

adrianchiris
Copy link
Collaborator

@adrianchiris adrianchiris commented May 2, 2022

If error occures during sriov configuration in
generic plugin, config daemon will log the error
and requeue the request to reconcile the node.

On the next run, when generic plugin Apply() method
is called, interface configuration may be skipped,
leaving the interface partially configured.

To ensure generic plugin re-configures the interface
on the next iteration, we reset the interface
before returning an error.

Signed-off-by: Adrian Chiris <[email protected]>
If error occures during sriov configuration in
generic plugin, config daemon will log the error
and requeue the request to reconcile the node.

On the next run, when generic plugin Apply() method
is called, interface configuration may be skipped,
leaving the interface partially configured.

To ensure generic plugin re-configures the interface
on the next iteration, we reset the interface
before returning an error.

This will also ensure that a drain will be requested
as well.

Signed-off-by: Adrian Chiris <[email protected]>
@github-actions
Copy link

github-actions bot commented May 2, 2022

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

Copy link
Collaborator

@e0ne e0ne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adrianchiris
Copy link
Collaborator Author

/test-all

@adrianchiris
Copy link
Collaborator Author

@SchSeba PTAL

@e0ne
Copy link
Collaborator

e0ne commented May 5, 2022

/test-e2e-nvidia-all

@rollandf
Copy link
Contributor

rollandf commented May 8, 2022

LGTM

@adrianchiris
Copy link
Collaborator Author

/test-all

@adrianchiris adrianchiris merged commit ca9bc8a into k8snetworkplumbingwg:master May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants